Can the US military legally hold non-POWs for an indefinite period without recourse to a trial?

If so no problem on a legal level.
According to the Geneva convention the answer is yes. That about sums it up. All thats left is a humanitarian consideration. Again we could have killed them long ago and treat them better than they deserve.