Create or update a global rule

Creates a global rule with the specified ID, or updates it if it already exists.