Women can't have prior salaries used against them, court says in equal pay case