Courts can hear equal pay claims, Supreme Court rules