A federal judge has ruled that Philadelphia’s ordinance banning employers from inquiring about a job-seeker’s salary history violates the First Amendment, an impediment to the city’s stated goal of leveling the playing field for women and minorities seeking equal wages.

However, the city didn’t walk away completely empty-handed, as the judge also held that companies cannot base hiring decisions on salary history.