A new law will let companies contribute billions of dollars less to their workers’ pension funds, raising concerns about weakening the plans that millions of Americans count on for retirement.