NHL players will participate at an Olympics for the first time in 12 years when the hockey competition takes place in Milan.