Indian lawmakers on Tuesday approved a bill to end the Muslim practice of instant divorce two years after the Supreme Court ruled that it violated the constitutional rights of Muslim women.

Law Minister Ravi Shankar Prasad said the bill’s approval by the upper house of Parliament reflects the empowerment of women and India’s changing profile.

The more powerful lower house approved the bill last week. It will become law after India’s president approves it, which is a formality.