The government is preparing to issue new legislation which will give police the power to stop and search drone pilots near airports.