A bill aimed at protecting workers’ rights by giving employees affected by corporate bankruptcies and closures more prelayoff notification time and severance pay cleared the Senate on Monday.

Lawmakers in the upper chamber passed S-3170, nicknamed the “Toys ‘R’ Us Bill” since its sponsors say the bankrupt retail chain was an impetus for it, by a 27-13 vote during the final voting session of this year.