"It was a rough week because it got him off message and put members of Congress in having to answer questions they don't like to answer," Sessions said on "Fox News Sunday."
"And it was just not the best of weeks."
Sessions called Trump's comments that an Indiana-born federal judge may be biased against him because of the judge's Mexican heritage an "off-the-cuff comment that he probably shouldn't have made."
"He's explained it and said he's going to stay off the subject," Sessions said.
"It's not the kind of comment that is focused on the main issues facing America. It's something he was irritated about because he felt he was not being fairly treated in that lawsuit."
But Sessions said the country is at risk and cautioned against electing someone like presumptive Democratic presidential nominee Hillary ClintonHillary Diane Rodham ClintonPence: Chief Justice Roberts 'has been a disappointment to conservatives' Top federal official says more details coming on foreign election interference The Hill's Campaign Report: COVID-19 puts conventions in flux  MORE. Trump will move beyond his comments and instead focus on the issues at hand, Sessions said.
The Alabama senator noted Trump made a speech last Friday that was well-received and will make another speech on Monday that will address Clinton's weaknesses.
"This man communicates," he said.
"He's talking about the issues people care about. ... I think he's got the message and the hope that people want. We're going to make change."