The expansion of Medicaid, a central pillar of the Affordable Care Act, faces immense uncertainty next year, with President-elect Donald J. Trump and top Republicans in Congress embracing proposals that could leave millions of poorer Americans without health insurance and jeopardize a major element of President Obama's legacy.