Court rules that state campaign limits are legal