On the Acquisition of Shared Grammatical Representations in Bilingual Language Models