Court ruling on military pensions