France’s minister for the environmental transition is stepping down over a controversial pesticide bill.