The Galois group of the tangency problem for plane curves