Bristol City hold off a Norwich City fightback to pick up a win which takes them into the Championship play-off places.