The Republican-dominated House approved a bill Thursday that would undercut the government’s labor dispute with Boeing Co., wading into a case that has angered business groups and become a major political issue in the GOP presidential primary.

The measure, approved on a 238 to 186 vote, would ban the National Labor Relations Board from ordering any employer to shut down plants or relocate work, even if a company violates labor laws.