The judge also ruled that Hastert must face 2 years of supervised release.
The former Speaker is scheduled to be sentenced this week.
The judge plans to take into account that Hastert lied about being extorted.
Hastert's lawyers said he is "deeply sorry" for evading bank rules.
The former Speaker's sentencing has been delayed over his failing health.
Lawyers for Hastert and prosecutors appeared in U.S. District Court on Thursday in Chicago.
The judge had previously donated to Dennis Hastert's campaign.
Due to previous donations to Hastert's campaigns, the assigned judge should recuse himself.
The Survivors Network of Those Abused by Priests challenged lawmakers to take it down.
The report says ex-Rep. Mel Watt (D-N.C.) found out about the allegations years ago.
Federal judge donated to Hastert's congressional campaigns.
A research center at Wheaton College was named for the former Speaker.
Hastert said he was "deeply ashamed" to be in the courtroom.
Tom DeLay was among the 41 people who wrote to the court asking for leniency.
This is the first time prosecutors have detailed the alleged crimes in court filings.
Dennis Hastert has admitted to attempting to pay someone $3.5 million in hush money in 2010.
Hastert is awaiting sentencing in a federal hush-money case.
If Kevin McCarthy can't get a first-ballot victory, there might be a bipartisan solution.
Judge Thomas has recused himself; the ball is now in the U.S. attorney's court.
Sen. Mark Kirk (R-Ill.) is giving the $10,000 to a faith-based group.
Some wonder whether anyone sought to use Hastert's secret against him.
OPINION | Dennis Hastert looks to be the victim of an overzealous federal prosecutor.
"It's very disturbing what is happening," said the House majority leader.
A report on child abuse from his time as a state legislator was uncovered.