Megan Barry, a Democrat who is considered a rising star, admitted to the affair on Wednesday, rocking Tennessee’s capital.