As many as six justices appeared bothered by a Republican effort to undercut the Affordable Care Act.