Yashasvi Jaiswal and KL Rahul forged a historic 172-run opening partnership, positioning India strongly in the Perth Test against Australia.