US Steel has agreed to be bought by NIppon Steel, Japan’s largest steelmaker, in a $14.1 billion deal.