This puzzling Medicare payment rule has driven up costs, furnished hospitals with extra cash they’ve used to consolidate healthcare markets, and left taxpayers footing the bill.