Rights groups challenge ruling on NYPD Muslim spying program