Some Democrats from Republican-leaning states have signaled that they are open to working with Republicans on legislation to replace the Affordable Care Act.