Regulators seized First Republic Bank and struck a deal to sell the bulk of its operations to JPMorgan.