FEMA receives 15B to provide relief to hurricane Harvey aftermath

How are these monies allocated? What has priority? What receives the larger share? Is there a formula? Or is it political?