Same thing applies to humanitarian aid.
If Hamas has hijacked or is operating in those places then they become military targets.
As far as white phosphorus, it depends on how it's deployed. If it's deployed for masking, tracing or identifying then it's legal.
If it's being directly used as an incendiary then that's illegal.
This comment is the equivalent of some guy telling you that you'll be paid in exposure and that the exposure is going to be worth way more than money in the long run, just trust me bro.