Washington is writing a big check for American farmers hit by adverse weather events in a bid to keep the sector resilient.