Alon Bakersfield refinery, rail projects OK’d by local authorities