Sonoma County law agencies have received about $1.4 million in state grants for traffic safety and drunken-driving enforcement.