President Joe Biden’s blocking of a Japanese company’s bid to purchase U.S. Steel overrode the advice of numerous top aides, ending a long-running debate that had divided the president’s inner circle, according to seven officials familiar with the matter.