Hospitals in Massachusetts will reap an annual windfall of $275 million due to a loophole enshrined in the new health care law. Hospitals in most other states will get less money as a result.