A US man who gave his troubled teenage son a rifle for Christmas has been found guilty of murder in a rare trial prosecuting a parent over a school shooting.