With an eye on offshore oil deposits, companies woo Brazil with social programs and political visits.