Three women attacked a factory with red paint over its alleged links to Israeli military action in Gaza, a court has heard.