Human resources software startup Factorial has raised $150 million in funding at a valuation of $2.5 billion, making it one of the most highly valued startups in Spain.