Are these grates okay to cook on?
What you have is rust.  You'll want to strip the grates down and re-season them

I've had mixed-luck over the years with cast iron grates on gas grills -- yes, they cook things really well, but if you leave the burners on high to burn off any food bits left on the grates after cooking, you'll risk burning off the seasoning ... which then leads to rusting.