Hungary follows US in pulling out of UN migration pact