If I recall those headlines correctly, they all included with "said Palestinian officials" or similar, which makes the reporting factual no matter who actually bombed the hospital. They were reporting on official statements, not making claims about what happened.
Similar things happen all the time. "State department officials say X" and similar isn't AP or Reuters making claims about X being true or not, they're just reporting statements.