Facing criticism for bailing out the government on the issue of Foreign Direct Investment in retail, the Bahujan Samaj Party on Friday said it voted with the United Progressive Alliance in Rajya Sabha as its defeat would have lead the Opposition to demand its resignation, on the ground that it does not enjoy a majority.