Netherlands became the sixth team to book their place in the UEFA Nations League quarter-finals after beating Hungary.