A judge has thrown out charges against four Greenpeace activists who scaled Rishi Sunak's home in protest at the expansion of oil and gas drilling in the North Sea.