Detroit braces for bankruptcy: Judge says city can cut pensions