Former York City graduate Ben Godfrey has joined Ipswich Town on loan from Atalanta until the end of the season.