India's Supreme Court has ruled that a divorce practice that allows men to instantly leave their wives without going through a court system, is unconstitutional.