A critical rail link between Brisbane and the beaches to its north is now locked in with a total of $5.5 billion secured from the state and federal governments.