Legendre Polynomial Expansions of Hypergeometric Functions with Applications