India's parliament passed new bills the government says will make it easier for farmers to sell their produce directly to big buyers, despite growing protest from opposition parties and a long-time ally of the ruling party.