A union representing Brazil's federal environment workers said it had signed an agreement with the government to end a strike affecting oil and gas licenses in Latin America's largest economy, according to a press release on Monday.