Federal prosecutors on Wednesday charged a man with committing a terrorist attack for allegedly setting a woman on fire on a Chicago train.