Court deals blow to Trump administration in Pentagon press fight