A federal judge in Kansas who was sanctioned after admitting multiple acts of professional and sexual misconduct resigned Tuesday.

U.S. District Judge Carlos Murguia, who served in Kansas City, was publicly reprimanded last year by the Judicial Council for the 10th U.S. Circuit Court of Appeals for having a years-long affair with a convicted felon, sexually harassing multiple employees after work hours "and often late at night" and showing up late to work because of basketball games.

His resignation will be effective April 1.

“In recent months, it has become clear that I can no longer effectively serve the Court in this capacity,” Murguia wrote in the letter addressed to President Donald Trump. “I therefore tender my resignation with a heavy heart and profound apologies, out of respect for the federal judiciary, my colleagues, my community and – most importantly – my family.”

Carlos Murguia:Kansas federal judge rebuked for sexual harassment and illicit affair with convicted felon

Over a "lengthy," unspecified period, according to the council, Murguia gave "preferential treatment and unwanted attention" to female employees and sent unsolicited text messages "late at night."

He also was involved in an extramarital affair with a convicted felon who was on probation when the relations began, which the council alleged held him "susceptible to extortion."

Earlier in February, the House Judiciary Committee wrote in a letter to the court that Murguia's actions constituted "serious, longstanding, unaddressed harm to its employees."

The committee also said that the Council did not address how it would ensure employee protection and support from "wrongful workplace conduct" or whether any anonymous system will be implemented for employees to step forward in the event of judicial misconduct.

Further, the committee said the council did not specify how many people were harassed and whether they were still working for Murguia.

Committee chairman Sen. Jerrold Nadler, D-N.Y., said in a statement to USA TODAY that the committee's concerns "remain no less urgent" after Murguia's resignation, given that "a judge’s retirement immediately terminates any pending misconduct investigations."

Last year, the House Judiciary Committee revised its codes of conduct for judges and judicial employees to more clearly define inappropriate workplace behavior, including sexual harassment.

"We still need to know what has been done to protect the employees who were harmed, fully investigate what happened and why this misconduct went unreported for so long, and develop policies and procedures to prevent this kind of misconduct from happening again," Nadler said. "This matter is not closed for the House Judiciary Committee."

Contributing: The Associated Press