Check the picture below.
so since ST is bisecting at the vertex T, that means that T will end up with twin angles and thus both triangles the yellow and green one since both are sharing the hypotenuse ST, both triangles are congruent by the HA theorem, and thus CPCTC.