A controversial data centre has been narrowly approved despite residents’ concerns about water usage and the stability of the neighbouring landfill.