The Brazilian government has granted the state-run Petrobras a license to drill for oil near the mouth of the Amazon.