Prosecutors said Frank James carried out a “premeditated” attack when he opened fire on a crowded subway train, injuring 29.