Yadav returned with excellent figures of four for 38 in his 12 overs.
With the win, Baroda have moved up to fourth position with 20 points from seven matches, while Railways are down to the eighth spot with seven points from as many matches.
Pandya returned with figures of four for 40 in his 18.3 overs, while Bhatt claimed three for 33 in his 15 overs.
Pandya added 171 for the fifth wicket with Mitesh Patel (55 not out), and fell on the stroke of stumps with just four over left.
Krishnappa Gowtham was the star on the final day as Karnataka crushed Railways by 176 runs in the round 7 of their Ranji Trophy, Elite Group A clash.
Railways ended day three at Shimoga on 41/1 - still 318 runs away from victory.
At stumps, Karnataka were 41/0 after Railways were bowled out for 143.
By virtue of the victory, the defending champs have now climbed to the second spot behind Saurashtra, while Railways have slipped to the sixth position.
Tyagi returned with exceptional figures of 7 for 41 in his 22.5 overs, while Avinash Yadav went for 102 runs in his 25 overs and picked three wickets.
With the three points, Hyderabad have jumped from their bottom place to eighth spot with four points in three matches.