Illinois Supreme Court upholds police and fire pension funds