Venezuela has passed an amnesty law to free hundreds of political prisoners, in what the government calls a step toward reconciliation after the US ousted President Nicolás Maduro.