A friend of the couple who carried out the 2105 San Bernardino terrorist attack will not be allowed to withdraw his guilty plea to a charge of providing material support by buying the rifles used to kill 14 people and wound 22, a federal judge ruled.