Consistency relations for large-scale structures: Applications for the integrated Sachs-Wolfe effect and the kinematic Sunyaev-Zeldovich effect