The Trump administration has reached an agreement with Nippon Steel to resolve national-security concerns with the company’s planned acquisition of U.S. Steel.