ANNAPOLIS, Md. — A measure to improve school safety and a package of legislation to reduce crime passed on the last day of Maryland’s legislative session late Monday, as Democrats and Republicans highlighted bipartisan work in contrast to partisan gridlock in the nation’s capital.

Gov. Larry Hogan, House Speaker Michael Busch and Senate President Thomas V. Mike Miller were scheduled to attend a bill signing Tuesday morning to sign one of the measures that most exemplified bipartisanship over the last 90 days: a bill to preserve the troubled individual market of the state’s health care exchange.

“Our number one priority was health care to make sure that people that had health insurance would continue to have health insurance,” Busch, a Democrat said when the session ended at midnight. “The legislature, the Senate and the House, worked with the governor very well there.”

Lawmakers also agreed to change the assembly’s sexual harassment policy as part of the #MeToo movement.

The school-safety bill would create a variety of standards and guidelines statewide. The bill would require public high schools to have either a school resource officer or plans for adequate law enforcement coverage by the upcoming school year. Other schools, such as middle and elementary schools, would need to have the plans in place for the school year that begins in 2019.

“People on both sides of the aisle came together to make this happen, and it’s a big bill,” Miller, a Democrat, said.

Lawmakers and the governor proposed legislation to increase school safety after the February school shooting in Parkland, Florida, that left 17 dead. The issue has received extra attention after the March 20 shooting at Great Mills High School, where a student shot and killed a former girlfriend before killing himself.

A spokeswoman for Hogan said the governor planned to sign the bill.

“We made some real progress on that, and everybody in the state wants to see that happen because no mom or dad should ever have to worry when they send their kids off to school whether their son or daughter is going to come home safely,” the Republican governor said, shortly before the bill was passed.

Legislators already have set aside about $41 million in the budget to make school-safety improvements.┬áThe bill sets aside another $10 million annually in future years to help pay for the policing component. Some lawmakers criticized that provision, because the bill doesn’t allocate extra money for mental health services.

The Senate agreed to accept changes made by the House on two bills to battle crime, after the House carved up a comprehensive Senate bill over the weekend that had been criticized over sentencing provisions.

In response to criticism from criminal-justice-reform advocates, the House included a provision to allow people to expunge criminal records after 15 years for the crimes of burglary, theft, and possession with intent to distribute drugs.

The legislation expands wiretapping authority for prosecutors on gun investigations. Penalties for witness intimidation increase from five to 10 years for inducing false testimony or retaliation for testimony. One provision is aimed at helping to prosecute volume dealers of fentanyl, the lethal ultra-potent opioid.

The Senate also is taking up measures approved by the House to add funding to programs aimed at reducing crime. One of them adds $3.6 million to Baltimore’s Safe Streets program, which uses mediators to steer young adults away from violence and connect them to services.

The measures come after Baltimore had 342 homicides in 2017 and set a record for homicides on a per-capita basis.

The House, meanwhile, voted unanimously for changes to how lawmakers handle sexual-harassment complaints. It creates a framework for an independent investigator to handle complaints against legislators, unless the person who filed the complaint doesn’t want one. It extends the policy to cover lobbyists, and it prohibits taxpayer money from being used to settle a lawsuit involving sexual harassment.

“This is a landmark piece of legislation that is going to significantly improve the culture for women in Annapolis,” said Del. Ariana Kelly, a Democrat who sponsored the bill and was one of three female legislators last month who publicly discussed sexual harassment they said they had experienced while working in the statehouse.

Earlier in the day, the assembly gave final approval to a bill to help improve diversity in Maryland’s new medical marijuana industry. Hogan said he had not yet seen the bill and would review it.