WASHINGTON—Treasury Secretary Steven Mnuchin rejected House Democrats’ request for President Trump’s tax returns, a move that was expected after he had contended for weeks that lawmakers were trying to expose details of the president’s finances rather than conducting legitimate legislative oversight.

The move will likely send the dispute between the executive and legislative branches into federal court, where judges may take months or years to resolve a legal question about the boundaries of congressional investigations.

...