The U.S. Supreme Court on Monday gave plaintiffs in workplace discrimination cases more time to file complaints against their employers.

By a 7-1 vote, the court said the 45-day deadline for initiating a constructive-discharge claim can begin running from the day the employee resigns—not the day of the last discriminatory workplace incident.