The long-awaited legislation to repeal and replace the Affordable Care Act proposes to phase out key parts of the law over several years.