A union lobbyist who worked just one day as a substitute teacher is entitled to a pension worth potentially tens of thousands of dollars annually, the state Supreme Court ruled Thursday in an opinion reinforcing its position that retirement benefits promised to public workers can’t be ‘diminished or impaired.’