After a year marred by the biggest US bank failures since the 2008 financial crisis, the nation’s largest lender is on familiar footing — scooping up a weakened rival, reeling in its clients and minting record profits along the way.