Court upholds narrow order against abortion ban