Senator John Kennedy, a Louisiana Republican, secured an acknowledgment from Ms. Yellen that community banks were not responsible for the 2008 financial crisis, then pressed her to explain why they had been subjected to any additional regulation.