A court or relevant government agency regulated by federal or local law can issue an injunction. Sometimes government agencies can give the order without legal proceedings.