MPs 'shameful' in opposing prisoners' voting rights