If the target creature card's mana value is greater than Julian Bashir's power when his last ability resolves (probably because an effect reduced Julian Bashir's power in response), the ability won't resolve and none of its effects will happen. If Julian Bashir is no longer on the battlefield when his last ability resolves, use his power as he last existed on the battlefield to determine whether or not the ability resolves.

Artwork
Loading artwork…
Julian Bashir, Frontier Doctor
Star Trek Commander · #21 · EN
Nonfoil—Foil—
Card rules
Seek out — Whenever you draw your second card each turn, put a +1/+1 counter on Julian Bashir.
Whenever Julian Bashir attacks, return target creature card with mana value X or less from your graveyard to the battlefield, where X is Julian Bashir's power.
1/1
Rare · Illustrated by Alexander Mokhov
Format legality
Commander Legal
Duel Legal
Legacy Legal
Oathbreaker Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Brawl Not Legal
Competitive Brawl Not Legal
Future Not Legal
Gladiator Not Legal
Historic Not Legal
Modern Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Penny Not Legal
Pioneer Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Timeless Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
If a card in a graveyard has X in its mana cost, X is 0 for the purpose of determining its mana value.
A permanent with a seek out ability doesn't need to have been under your control when the first card is drawn for its ability to trigger. As long as you control it when you draw your second card in a turn, that ability will trigger.