The judge, Steven W. Rhodes, dealt a major blow to the widely held belief that state laws preserve public pensions, and his ruling is likely to resonate in Chicago, Los Angeles, Philadelphia and many other American cities where the rising cost of pensions has been crowding out spending for public schools, police departments and other services.