The ruling said activist Laura Pressley’s case was moot, because the state has already banned the practice she challenged.