A friend of San Bernardino shooter Syed Farook pleaded guilty on Thursday to buying the guns used to kill 14 people in the 2015 terror attack.