City school fails in bid to stop housing development