Is it code compliant to vent my bathroom exhaust through the turbine vent in our attic?
Your contractor is lazy. The best solution is through the wall (though not near an eave), but if that is not possible, a dedicated vent in the ceiling is necessary.

If there is no wind, dumping the hot moisture-laden air into the whirlybird will just put it back into the attic.