The U.S. military says any kind of violation of the religious rights of detainees will be treated very seriously .