Judge rules for government in monitoring suit