Shares of the Swiss banking giant rallied significantly Thursday after Switzerland’s central bank agreed to lend it $54 billion.