Federal Reserve Chairman Jerome Powell said recent inflation was uncomfortably above the levels the central bank seeks, concluding two days of testimony in which he sounded somewhat less confident about the economic outlook—and the Fed’s policy path—than earlier this year.