Rhode Island to get more than $8M to prepare for emergencies