A federal judge in Alabama sentenced two men accused of "plotting to wage violent holy war overseas" to 15 years in prison each on Friday.