The UK government has authorised the emergency use of a type of pesticide almost entirely banned in the EU because of the harm it can cause to bees.