Australian short-term inmates have their right to vote reinstated