The Maryland State House in Annapolis. (Patrick Semansky/AP)

Maryland’s House of Delegates on Monday passed legislation that would strictly limit the ability of local police to cooperate with federal immigration agents and bar pharmaceutical companies from drastically raising prices for essential drugs.

The Democratic-controlled House also passed measures that prohibit housing discrimination against individuals who use public assistance and restrict use of the far-left lane on any highway for the purpose of passing slower vehicles.

The votes came as the House was working through its first of two lengthy floor sessions for “crossover day,” the date by which legislation must pass out of at least one chamber to have a reasonable shot at reaching the governor’s desk.

A House committee rejected a proposal from Gov. Larry Hogan (R) that would require independent commissions rather than state officials to draw voting districts in Maryland, a measure intended to prevent partisan gerrymandering.

The Senate did not schedule a Monday floor vote for the legislation, which means the bill probably will die for a second straight year, despite strong public support for redistricting reform and a vocal public push by the governor.

The immigration measure, known as the Trust Act, would bar local law enforcement agencies from aiding federal immigration-enforcement efforts except in cases involving judicial warrants.

Frederick and Harford counties, which have agreements to collaborate extensively with U.S. Immigration and Customs Enforcement, would be exempt from the restrictions.

The House rejected an amendment from Minority Leader Nicholaus R. Kipke (R-Anne Arundel) that would have allowed exceptions for individuals who are suspected of terrorism, espionage or posing a danger to national security.

“We are handicapping the state of Maryland’s ability to protect our citizens from the worst violent criminals who may be in our country illegally,” Kipke said.

Del. Carlo Sanchez (D-Prince George’s) argued against the amendment, saying immigration agents “should have no problem going to a federal judge and getting a judicial warrant” for any undocumented immigrant who poses a serious threat to the public.

Hogan promised to veto the bill, calling it “outrageously irresponsible” and saying it would endanger citizens.

The price-gouging bill allows the attorney general’s office to take legal action if his office determines that a drug company has raised the price of a drug by an “unconscionable” amount, defined in part as an increase that is “excessive and not justified by the cost of producing the drug or cost of appropriate expansion of access to the drug.”

The housing legislation would ban landlords and real estate agents from refusing to rent or sell units based on an individual’s source of income. The goal is to prevent discrimination against those who rely on public-assistance, including federal housing vouchers and disability payments.

Lawmakers voted down an amendment from House Minority Whip Kathy Szeliga (R-Baltimore County) that would have exempted jurisdictions that have rejected similar legislation at the local level. She noted that Baltimore County, which has a Democratic-majority council, voted 6 to 1 against such a measure.

“Our council has had a very healthy debate on this issue, and the people of the county spoke — it was a very, very active issue,” Szeliga said.

Democratic lawmakers argued that jurisdictions should not be able to exclude themselves from anti-discrimination laws, which in this case are designed to make sure neighborhoods are not economically segregated.

“This is a deconcentration of poverty,” said Del. Marvin E. Holmes Jr. (D-Prince George’s).

The traffic legislation would designate the far-left lane on any roadway with at least two lanes in one direction and a speed limit of at least 55 mph for passing purposes only. Fines would range from $75 to $250, depending on the number of offenses. Exceptions would apply for drivers using the far-left lane to exit or turn left, and when congestion had slowed the pace of traffic to at least 10 mph below the speed limit.

The Senate, which like the House met Monday night, took its first look at Hogan’s $43.5 billion budget, which now includes $112.3 million in spending that the governor planned to cut.

The Senate spent an hour debating a controversial bill that could overturn a recent decision by the Maryland Court of Appeals to eliminate bail for defendants who cannot afford to pay it.

The bail-bond industry has lobbied intensely for the measure, which would overhaul the bail system and would allow only those charged with misdemeanors to be released on personal recognizance.

Last week, the Legislative Black Caucus voted 18 to 13 to encourage the House and Senate judicial committees to take no action on bail-reform measures this year. The Senate panel moved the bill to the Senate floor Friday afternoon, and the full Senate delayed action until Monday night.

The caucus’s legislative review committee decided late Monday afternoon to rescind the full caucus’s earlier vote and be ready to act on the bill if it makes it out of the Senate and is considered in the House Judicial Proceedings Committee.

“It would be irresponsible for us as a Legislative Black Caucus not to do anything,” said caucus chair Del. Cheryl Glenn (D-Baltimore). “We don’t want the court rule to be rolled back at all.”

The Senate also debated a bill that would bar expulsions of pre-kindergarten students and limit suspensions and expulsions of students in kindergarten through second grade. There were more than 2,200 students in that age group who were suspended and expelled last year.

Sen. William C. Smith Jr. (D-Montgomery) said the measure is a step toward shutting down what is known as the school-to-prison pipeline, the practice of pushing children out of school and toward the juvenile justice system.

“You can’t suspend or expel for petty behavior or because a child is disruptive,” Smith said. The bill says a student would have to pose an “imminent threat.”