The court spent four days on the federal government 's challenge to the legislation .