Republican lawmakers have been struggling with how to fulfill their pledge to repeal the healthcare law, replace it with something else and preserve coverage for the more than 20 million people who rely on it.