The state medical board had threatened to punish physicians who aid executions, but the state Supreme Court ruled the agency overstepped its bounds.