U.S. farmers struggling with falling prices and disrupted export markets will receive $12 billion in federal aid, aiming to offset losses caused in part by retaliatory tariffs.