Ruling paves way for Gitmo tribunals