Court rules in favor of employer that based pay on salary history