You can read the HAMDAN v. RUMSFELD ruling here.