The House approved a measure authorizing funds to help workers who lose their jobs as a result of trade deals.