But the federal law gave states an opening: Starting this year, it said, any state would be free to choose another way if it could come up with a health-care system with equivalent or better benefits.