Author behind Oscar-nominated film finds praise and ire for his rebuke of Brazil’s dictatorship