New Jersey Gov. Phil Murphy speaks during his 2021 budget address at SHI Stadium at Rutgers University, Tuesday, Aug. 25, 2020, in Piscataway, NJ. (AP Photo/Noah K. Murray)

TRENTON, N.J. (AP) — New Jersey Democratic Gov. Phil Murphy on Friday signed into law legislation to conduct November's presidential election nearly entirely by mail.

Murphy signed the bills just a day after the Democrat-led Legislature sent them to his desk.

They come in the face of a lawsuit from Republican President Donald Trump's campaign to halt an executive order Murphy signed earlier this month requiring a mostly mail-in election.

The GOP lawsuit argued that the governor's order amounted to a “usurpation” of the Legislature's powers.

The legislation “really undercuts” part of the suit, Democratic Assemblyman Andrew Zwicker said in an interview.

Murphy had cited concerns over the spread of the coronavirus earlier this month when he signed an executive order requiring that every active registered voter be sent a ballot with a prepaid return envelope in time for the Nov. 3 general election.

In a statement on Friday, Murphy invoked the outbreak as the reason for the change.

“Even in the face of a pandemic, we are firmly committed to ensuring a safe and inclusive General Election," Murphy said.

The order by and large meant the general would proceed like the July primary, but with some changes, including doubling the minimum number of drop boxes at which voters can leave ballots from five per county to 10. The governor also mandated that poll workers accept voters' mail-in ballot in person at polling places. In July, only provisional voting was approved to take place in person.

The Trump campaign's lawsuit was filed in U.S. District Court in New Jersey earlier this month. It has not been heard by a judge yet.