An agreement on new rules for organic farming has been endorsed by European Council representatives.