An appellate court found that the Trump administration was within its rights to cancel billions of dollars in grants. The nonprofits that had their grants canceled are expected to appeal.