The bill is the latest victory for the president on overhauling the physical economy, but he has found less support for plans to help workers.