WASHINGTON—Michael Cohen, a former lawyer for President Trump, has agreed to testify publicly before the House Oversight Committee on Feb. 27, in what is expected to be an explosive hearing focused on his decade of working for the president.

...