Complex sentence: The L&GR was nearly bankrupt in 1844 and the SER agreed to lease their line from 1 January 1845, which became the Greenwich branch of that railway.
Split into simpler sentences: The L&GR was nearly bankrupt in 1844 and the SER leased its line from 1 January 1845. It became the Greenwich branch of that railway.