A new mother in Massachusetts will get paid time off to care for her baby, beginning in 2021. A son will get paid time off to care for his ailing parent. A fast food worker will earn at least $15 an hour by 2023.

Gov. Charlie Baker on Thursday signed into law a bill that will reshape the state's workplaces.

The new law is the result of a so-called "grand bargain" that lawmakers reached last week in order to keep three ballot questions off of the November 2018 ballot. Those questions would have raised the minimum wage, instituted paid leave and also lowered the state sales tax.

Baker said the compromise, negotiated with lawmakers by business and labor groups, is "a far better product for the commonwealth than each of these as standalone entities would be for Massachusetts."

Baker signed the bill flanked by House Speaker Robert DeLeo, D-Winthrop, Senate President Harriette Chandler, D-Worcester, and a host of Democratic legislative leaders.

DeLeo called the new law "a good piece of legislation both for businesses and people who work in the commonwealth."

By 2023, Massachusetts will be tied with California for the state with the highest minimum wage in the country, unless other states follow suit. Washington, D.C. and New York have also passed a $15 minimum wage, but New York's law will go into effect more gradually.

The minimum wage will increase gradually, from $11 today to $15 on Jan. 1, 2023. There will be a lower increase for tipped workers, from $3.75 today to $6.75 by 2023.

Time-and-a-half pay on Sunday and holidays will be phased out over five years.

The Massachusetts Budget and Policy Center estimates that 840,000 workers will see their wages rise by 2023.

The paid leave program, which starts in 2021, will give a worker between 12 and 26 weeks of paid time off to treat a serious illness, care for a sick relative, care for a newborn child, or handle matters stemming from a family member's military deployment or injury.

The pay will be passed on a percentage of a person's salary, with a cap of $850 a week, which will be adjusted over time.

It will be paid for by a new 0.63 percent payroll tax, with the cost split between the employer and employee.

Sen. Jason Lewis, D-Winchester, chairman of the Joint Committee on Labor and Workforce Development, said Massachusetts will now have the strongest paid family and medical leave program in the country.

"This is a landmark victory for working families in Massachusetts," Lewis said. "Finally, workers, especially low wage workers, won't have to choose between getting a paycheck and having to take time off of work to bond with a newborn baby or take care of an ill family member."

The compromise bill does not lower the sales tax. It does create a permanent sales tax holiday on one weekend each year, in August. It also gradually eliminates time-and-a-half pay on Sundays and holidays, which business owners have long been advocating for.

Advocates hailed the bill's signing as a landmark moment. "This landmark legislation is critical to achieving economic equality for women and security for all hardworking Bay Staters, who too often have to choose between the job they need and the family they love," said Carol Rose, executive director of the ACLU of Massachusetts.

Raise Up Massachusetts, a coalition of labor, clergy and liberal organizing groups that was pushing for the minimum wage increase and paid family leave, sent out statements from several workers.

Sandra Cormier of Wareham said she had to take early retirement in order to help her sick mother. Her work offered unpaid leave, but she couldn't afford to take it. Now, she is looking for another job to pay the bills."I would have been glad to contribute a few dollars for insurance that can keep you from losing so much," Cormier said.