For all these reasons, the Medicaid expansion contained in the law was a no-brainer for big-city mayors: The federal funding promised to cover anew tens of thousands of residents in many cities who had otherwise been turning up in hospitals with no insurance at all.