The Republican-led Legislature voted to adopt the optional Obamacare program, resisting the Trump administration’s pleas to reject expansion.