Plans for a plant which would convert chicken waste into gas have been approved despite strong public opposition.