A top European court found Tuesday that Switzerland violated human rights by failing to slow the impact of global warming — a landmark ruling hailed by climate activists even as the court tossed out two other cases that activists had hoped could force governments to protect their citizens from climate change.