In a public discussion at the University of Michigan, Ms. Yellen said the Fed was moving away from its efforts to revive a recession-scarred economy and focusing instead on maintaining the gains of the past few years.