The judge ruled that the president has 28 days to file an amended complaint that should not exceed 40 pages in length.