Planning reforms face legal challenge