Likely won’t matter as long as your other grades are strong.
You will need to make them up, as you plan to do. Keep in mind if you take them in the summer following 9th grade or anytime thereafter, the grades will be part of your UC GPA calculation.
You should file a formal complaint with the district which will trigger a mandatory investigation (assuming you are in California).