Lael Brainard, the Federal Reserve’s vice chair, said the central bank is “in this for as long as it takes to get inflation down.”