President Joe Biden, during a visit to Detroit, praised Ford for its investment in American manufacturing and made a surprise stop at one of the company’s test tracks to take an electric F-150 out for a spin.