If you make $100,000 a year and I announce I’m giving your coworker, who makes $20,000 a year a big raise, am I somehow taking something away from you? No.
Same is true here. Opportunities, funding, etc. for minorities lags far behind that for whites as a whole. Does that mean all white people are rich? Absolutely not. But in general being white means access to a lot more opportunities and advantages than not being white.
Apple (and others) are seeking to help those communities catch up, to be able to have a more equitable chance to join fields like programming and engineering.
Put it another way. If we are running a race and I get to start 100m away from the goal and you have to start 200m away, letting you move 100m closer isn’t punishing me, it’s making sure we both have a fair chance to compete. That’s what Apple et. al. are trying to do here, help move everyone closer to the same starting point. It’s a good thing to do. It’s the right thing to do.