The legislation affecting the residual Andhra Pradesh state boundaries was cleared in Parliament’s upper house.