A German court rejected on Thursday a lawsuit brought by a group of farmers trying to compel the government to take swifter action on climate change.