Sonogram law must be enforced immediately, court says