A man accused of buying a gun for the alleged shooter appeared in federal court Monday