The government faces legal action over its decision to allow the use of a pesticide that harms bees.