Congress will move to impose a settlement on unions after President Biden warned that a rail shutdown would devastate the economy.