WASHINGTON — A record 24 million people have signed up for medical insurance through the Affordable Care Act, former President Barack Obama’s landmark health legislation, as the program awaits an uncertain future under a Republican-controlled White House and Congress.