Nearly 3,100 federal inmates will be released from prisons nationwide Friday under the first major milestone of the First Step Act.

Deputy Attorney General Jeffrey A. Rosen said the en masse release is possible because inmates’ sentences were lightened under the criminal justice reform legislation signed into law by President Trump last year.

The law increased good time credit and reduced felons’ sentences.

The largest number of inmates who will see immediate freedom were convicted of drug offenses, followed by weapons/explosive convictions and sex offenses, according to Justice officials.

Among the freed are 93 inmates who were prosecuted and convicted in New York state. About 900 of the inmates released from federal custody have detainers, either for deportation or to states for prosecution for local charges, according to the Bureau of Prisons.

“When you look at tomorrow’s (federal prison) population numbers, there will be 3,000 inmates fewer than we had today,” said Hugh Hurwitz, acting director of the Bureau of Prisons.

An additional 1,691 inmates convicted of crack cocaine offenses received reduced sentences under retroactive sentencing aimed at removing the disparity between crack and powdered cocaine offenses.

Another 250 inmates were placed on compassionate release since the First Step Act was passed in December 2018, Rosen said.

The First Step Act has been a passion project of Trump’s son-in-law Jared Kushner, who learned firsthand the conditions of prison through his dad’s incarceration. The legislation earned bipartisan support last year in an effort to reduce the federal prison population and better connect federal inmates with the resources they need to be successful on the outside.

Jessica Jackson, who worked with Kushner and the White House on the passage, said the freed inmates earned their second chance.

“We have all made a bad decision in our life at some point,” said Jackson, co-founder and national director of the #cut50 advocacy group. “And none of us want to be defined by that decision.

“The group of people who are coming home today are people who have taken accountability for the bad decisions they’ve made. And they’ve really worked hard to rehabilitate themselves.”

The Justice Department also announced a new Risk and Needs Assessment System tool — required under the law — to better measure inmates’ risk of reoffending.

Eligible inmates may qualify for earned time credits by participating in recidivism reduction programming.

The Justice Department allocated $75 million to enact the sentencing changes, Rosen said, calling it a “truly monumental effort.”